T
IdeaBlade DevForce 2010 Help Reference
ForEach<T>(IEnumerable<T>,Action<T>) Method
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core Namespace > EnumerableFns Class > ForEach Method : ForEach<T>(IEnumerable<T>,Action<T>) Method



items
action
Enumerate a cached collection performing the specified action on each item.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Overloads Shared Sub ForEach(Of T)( _
   ByVal items As IEnumerable(Of T), _
   ByVal action As Action(Of T) _
) 
Visual Basic (Usage)Copy Code
Dim items As IEnumerable(Of T)
Dim action As Action(Of T)
 
EnumerableFns.ForEach(Of T)(items, action)
C# 
[ExtensionAttribute()]
public static void ForEach<T>( 
   IEnumerable<T> items,
   Action<T> action
)
C++/CLI 
[ExtensionAttribute()]
public:
static void ForEachgeneric<typename T>
( 
   IEnumerable<T^>^ items,
   Action<T^>^ action
) 

Parameters

items
action

Type Parameters

T

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.